package net.zhengxinyun.performance.filter;



import net.zhengxinyun.performance.App.dto.IndexDTOs.TownScoreDTO;
import net.zhengxinyun.performance.App.dto.IndexDTOs.TownWeightDTO;
import net.zhengxinyun.performance.Util.DataUtil;
import net.zhengxinyun.performance.Util.StringUtils;
import net.zhengxinyun.performance.core.PaginationQuery;
import net.zhengxinyun.performance.entity.TownEntity;

import java.util.Date;
import java.util.List;

/**
 * @Auther: hyp
 * @Date: 2018/10/29 17:45
 */
public class TownIndicatorsFilter extends PaginationQuery {

    private Long id;

    private Date gmtCreate ;

    private Date gmtModified ;

    private String weight;//权数

    private String dateTime;

    private String indexName;

    private String superiorIndexId;

    private String leadUnit;
    private String respUnitName;
    private String leadUnitName;
    private String responsibilityUnit;

    private String standardValue;

    private String indexType;

    private String direction;//方向

    private String scoreType;//0权数，1得分率，2最终得分

    private String monthTime;

    private String townName;

    private String score;

    private String finalScore;

    private String audit;

    private String reason;

    private String rank;

    private String mainUnit;
    private String departCode;

    private String scoreId;
    private String indexId;
    private int indexClass;

    private String tableType;
    private String department;
    private String indexYear;

    private List<TownWeightDTO> townWeights;
    private List<TownScoreDTO>  townScores;

    public List<TownScoreDTO> getTownScores() {
        return townScores;
    }

    public void setTownScores(List<TownScoreDTO> townScores) {
        this.townScores = townScores;
    }

    public List<TownWeightDTO> getTownWeights() {
        return townWeights;
    }

    public void setTownWeights(List<TownWeightDTO> townWeights) {
        this.townWeights = townWeights;
    }

    public double getDoubleFinaScore()
    {
        return   DataUtil.doubleParse(finalScore);
    }

    public int getIntWeight()
    {
        return  DataUtil.integerParse(weight);
    }

    public String getIndexYear() {
        return indexYear;
    }

    public void setIndexYear(String indexYear) {
        this.indexYear = indexYear;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTableType() {
        return tableType;
    }

    public void setTableType(String tableType) {
        this.tableType = tableType;
    }

    /**
     * 返回 int 值的rank 方便排序
     * @return
     */
    public int  getRankInt(){
        return StringUtils.toInteger(rank);
    }

    public int getIndexClass() {
        return indexClass;
    }

    public void setIndexClass(int indexClass) {
        this.indexClass = indexClass;
    }

    private int avail ;

    private List<String> townListData; //指标分析中接受被考核乡镇id

    public String getRespUnitName() {
        return respUnitName;
    }

    public void setRespUnitName(String respUnitName) {
        this.respUnitName = respUnitName;
    }

    public String getLeadUnitName() {
        return leadUnitName;
    }

    public void setLeadUnitName(String leadUnitName) {
        this.leadUnitName = leadUnitName;
    }

    public List<String> getTownListData() {
        return townListData;
    }

    public void setTownListData(List<String> townListData) {
        this.townListData = townListData;
    }

    public int getAvail() {
        return avail;
    }

    public void setAvail(int avail) {
        this.avail = avail;
    }

    public String getIndexId() {
        return indexId;
    }

    public void setIndexId(String indexId) {
        this.indexId = indexId;
    }

    private List<TownEntity> townList;

    public String getScoreId() {
        return scoreId;
    }

    public void setScoreId(String scoreId) {
        this.scoreId = scoreId;
    }

    public List<TownEntity> getTownList() {
        return townList;
    }

    public void setTownList(List<TownEntity> townList) {
        this.townList = townList;
    }

    public String getDepartCode() {
        return departCode;
    }

    public void setDepartCode(String departCode) {
        this.departCode = departCode;
    }

    public String getMainUnit() {
        return mainUnit;
    }

    public void setMainUnit(String mainUnit) {
        this.mainUnit = mainUnit;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getAudit() {
        return audit;
    }

    public void setAudit(String audit) {
        this.audit = audit;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getFinalScore() {
        return finalScore;
    }

    public void setFinalScore(String finalScore) {
        this.finalScore = finalScore;
    }

    public String getMonthTime() {
        return monthTime;
    }

    public void setMonthTime(String monthTime) {
        this.monthTime = monthTime;
    }

    public String getScoreType() {
        return scoreType;
    }

    public void setScoreType(String scoreType) {
        this.scoreType = scoreType;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getIndexType() {
        return indexType;
    }

    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getSuperiorIndexId() {
        return superiorIndexId;
    }

    public void setSuperiorIndexId(String superiorIndexId) {
        this.superiorIndexId = superiorIndexId;
    }

    public String getLeadUnit() {
        return leadUnit;
    }

    public void setLeadUnit(String leadUnit) {
        this.leadUnit = leadUnit;
    }

    public String getResponsibilityUnit() {
        return responsibilityUnit;
    }

    public void setResponsibilityUnit(String responsibilityUnit) {
        this.responsibilityUnit = responsibilityUnit;
    }

    public String getStandardValue() {
        return standardValue;
    }

    public void setStandardValue(String standardValue) {
        this.standardValue = standardValue;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }
}
